import Vue from 'vue'
import App from './App.vue'
import router from'./router'
import store from './store'
import TypeNavPage from './components/TypeNav/index.vue'
import Dialog from '@/components/Dialog'
import Pagination from '@/components/Pagination'
import '@/mockServer'
//引入element插件
import ElementUI from 'element-ui';
//引入样式
import 'element-ui/lib/theme-chalk/index.css';
import 'swiper/css/swiper.css'
//使用
Vue.use(ElementUI);
Vue.config.productionTip = false
//全局注册TypeNav  三个名字必须一样
Vue.component(TypeNavPage.name,TypeNavPage)
//弹框
Vue.component(Dialog.name,Dialog)
//分页器
Vue.component(Pagination.name,Pagination)

new Vue({
  render: h => h(App),
  router,
  //添加全局事件总线
  beforeCreate(){
    Vue.prototype.$bus = this
  },
  store,

}).$mount('#app')

